import Vue from 'vue'
import App from './App.vue'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios"
import VueRouter from "vue-router"
import router from "./router"
import store from "./store"
/* 5.0.0版本引入方式有变更 */
import * as echarts from 'echarts';

/* Axios setting */
axios.defaults.baseURL = process.env.VUE_APP_API_URL; //请求代理服务器，代理服务器转发
axios.defaults.timeout = 5000;
Vue.prototype.$http = axios
/* Echarts setting */
Vue.prototype.$echarts = echarts;
/* VueRouter setting */
Vue.use(VueRouter);
/* ElementUI setting */
Vue.use(ElementUI);
/* Vue setting */
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
